<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>车辆管理</title>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
</head>
<style type="text/css">

</style>

<script type="text/javascript" src="${webRoot}/plug-in/ajaxfileupload/ajaxfileupload.js"></script>

<body  scroll="no" >
<t:formvalid  formid="addformobj" dialog="true" usePlugin="password" layout="table" action="bCarController.do?save" >
   <input id="carId" name="carId" type="hidden" value="${bCarEntity.carId}">

    <table  cellpadding="0" cellspacing="1" class="formtable">


        <tr>
            <td align="right" style="width: 130px;">
                <label class="Validform_label">
                    车牌号:
                </label>
            </td>
            <td class="value" style="width: 350px;">
                <input class="inputxt" id="platesNum" ajaxurl="bCarController.do?checkPlatesNum&platesNum=${bCarEntity.platesNum }"
                       value="${bCarEntity.platesNum}"  name="platesNum" datatype='*'>
                <span class="Validform_checktip"></span>
            </td>

            <td align="left" style="width: 100px;">
                <label class="Validform_label">
                    品牌型号:
                </label>
            </td>
            <td class="value" style="width: 350px;">
                <input class="inputxt" id="brand"
                       value="${bCarEntity.brand}"  name="brand" datatype='*'>
                <span class="Validform_checktip"></span>
            </td>

        </tr>
        <tr>
            <td align="right" >
                <label class="Validform_label">
                    行驶证登记单位:
                </label>
            </td>
            <td class="value" >
                <input class="inputxt" id="lru"
                       value="${bCarEntity.lru==null?'高新检察院':bCarEntity.lru}"  name="lru">
                <span class="Validform_checktip"></span>
            </td>

            <td align="left">
                <label class="Validform_label">
                    车辆类型:
                </label>
            </td>
            <td class="value">
                <t:dictSelect field="carType"  type="select" typeGroupCode="carType" defaultVal="${bCarEntity.carType}"
                              hasLabel="false" id="carType" extendJson="{datatype='*',class='inputxt',nullmsg='请选择车辆类型'}" >
                </t:dictSelect>
                <span class="Validform_checktip"></span>
            </td>

        </tr>
        <tr>
            <td align="right" >
                <label class="Validform_label">
                    车辆识别代码:
                </label>
            </td>
            <td class="value" >
                <input class="inputxt" id="vin"
                       value="${bCarEntity.vin}"  name="vin" datatype="onlyLetterNumber" >
                <span class="Validform_checktip">只能输入数字、英文字母</span>
            </td>

            <td align="left" >
                <label class="Validform_label">
                    发动机号:
                </label>
            </td>
            <td class="value" >
                <input class="inputxt" id="engineNum"
                       value="${bCarEntity.engineNum}"  name="engineNum" datatype="onlyLetterNumber" nullmsg="请填写发动机号" errormsg="发动机号格式不正确">
                <span class="Validform_checktip">只能输入数字、英文字母</span>
            </td>

        </tr>


        <tr>
            <td align="right">
                <label class="Validform_label">
                    排量:
                </label>
            </td>
            <td class="value">
                <input class="inputxt" id="displacement"
                       value="${bCarEntity.displacement}"  class="easyui-numberbox" style="height: 23px;width: 153px;"
                       min="0" precision="2" type="number" name="displacement" >
                <span class="Validform_checktip"></span>
            </td>

            <td align="left">
                <label class="Validform_label">
                    排量单位:
                </label>
            </td>
            <td class="value">
                <%--<input class="inputxt" id="displacementUnit"--%>
                       <%--value="${bCarEntity.displacementUnit}"  name="displacementUnit">--%>
                <select id="displacementUnit" class="inputxt" name="displacementUnit" >
                    <option value="L" <c:if test="${bCarEntity.displacementUnit == 'L' || bCarEntity.displacementUnit == null }"> selected </c:if> >L</option>
                    <option value="T" <c:if test="${bCarEntity.displacementUnit == 'T'}"> selected </c:if> >T</option>
                </select>
                <span class="Validform_checktip"></span>
            </td>

        </tr>
        <tr>
            <td align="right">
                <label class="Validform_label">
                    购置价格(万元):
                </label>
            </td>
            <td class="value">
                <input class="inputxt" id="purchasePrice"
                       value="${bCarEntity.purchasePrice}"  class="easyui-numberbox" style="height: 23px;width: 153px;"
                       min="0" precision="2" type="number" name="purchasePrice" >
                <span class="Validform_checktip"></span>
            </td>

            <td align="left">
                <label class="Validform_label">
                    资产权属:
                </label>
            </td>
            <td class="value">
                <input class="inputxt" id="assetOwnership"
                       value="${bCarEntity.assetOwnership==null?'高新检察院':bCarEntity.assetOwnership}"  name="assetOwnership">
                <span class="Validform_checktip"></span>
            </td>

        </tr>
        <tr>
            <td align="right" >
                <label class="Validform_label">
                    备注:
                </label>
            </td>
            <td class="value" colspan="3">
                <textarea  name="remark" style="height: 70px;width: 575px;">${bCarEntity.remark}</textarea>
                <span class="Validform_checktip"> </span>
            </td>

        </tr>

    </table>
</t:formvalid>


</body>

<script type="text/javascript">
</script>
</html>